// 主页请求
import { requestAsync } from "../../utils/requestService"

// 主页列表
async function productsRequest(requestBody, headers = {}) {
  let address = '/products';
  let resultObj = await requestAsync(address, 'GET', requestBody, headers);
  return resultObj;
}

// 登录
async function wxauthorRequest(requestBody, headers = {}) {
  let address = '/wxauthor';
  let resultObj = await requestAsync(address, 'POST', requestBody, headers);
  return resultObj;
}

export { productsRequest,wxauthorRequest }